/*NOTICE

This software was produced for the U. S. Government
under Contract No. FA8721-09-C-0002, and is
subject to the Rights in Noncommercial Computer Software
and Noncommercial Computer Software Documentation Clause
(DFARS) 252.227-7014 (JUN 1995)

(c) 2009 The MITRE Corporation. All Rights Reserved.
*/
package org.mitre.xmltransform.spmif;

public class Device {
	public Device(String pName, String pType, String pSchedulingPolicy, int pQuantity) {
		mName = pName;
		mType = pType;
		mSchedulingPolicy = pSchedulingPolicy;
		mQuantity = pQuantity;
	}
	
	public String getName() {
		return mName;
	}
	public String getSchedulingPolicy() {
		return mSchedulingPolicy;
	}
	public int getQuantity() {
		return mQuantity;
	}
	public String getType() {
		return mType;
	}
	
	public boolean equals(Device pOther) {
		if (pOther == null) return false;
		return (pOther.getName().equals(getName()));
	}
	
	public static final String TYPE_PROCESSING = "Processing";
	public static final String TYPE_PASSIVE = "PassiveResource";
	
	private String mName;
	private String mType;
	private String mSchedulingPolicy;
	private int mQuantity;
}
